<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
        <meta name="viewport" content="initial-scale=1, user-scalable=0, minimal-ui" charset="UTF-8">
		<title></title>
	</head>
	<script src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		function getNewsDetail(url, params) {
			$.ajax({
				type: "post",
				url: url,
				data: JSON.stringify(params),
				dataType: "json",
				contentType: 'application/json',
				success: function(res) {
					if (res.code == 0) {
						var contentString = res.data.newsContent
						var partyNewsDate = new Date(res.data.createTime)
						$("#dateTxt").empty()
						$("#dateTxt").append(partyNewsDate.getFullYear() + '-' + (partyNewsDate.getMonth() + 1) + '-' + partyNewsDate.getDate())
						$("#newsTitle").empty()
						$("#newsTitle").append(res.data.newsTitle)
						$("#newsDetail").empty()
						$("#newsDetail").append(contentString)
					}
				}
			});
		}
	</script>
	<style type="text/css">
		body {
			padding-left: 0.8rem;
			padding-right: 0.8rem;
			padding-top: 1rem;
		}

		p {
			font-size: 15px;
		}

		.news-title {
			font-size: 18px;
		}

		.news-label {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			font-size: 14px;
			color: #999;
			margin: 4px 0px 10px;
		}

		.detail-record {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
		}

		.detail-date {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
		}

		.detail-icon {
			width: 24px;
			height: 24px;
		}

		.news-content {
			font-size: 15px;
		}


		img {
			width: 100%;
		}

		.news-content img {
			width: 100%;
		}

		.news-content video {
			width: 100%;
		}

		#newsDetail p {
			font-size: 15px;
			line-height: 30px;

		}

		#newsDetail img {
			text-indent: 0 !important;
		}

		#newsDetail .fileImg {
			width: 16px;
			height: 16px;
		}

		#newsDetail .fileA {
			font-size: 15px
		}
	</style>
	<body>
		<div id="newsTitle" class='news-title'></div>
		<div class='news-label'>
			<div class="detail-date">
				<image class='detail-icon' src='img/date.png'></image>
				<div id="dateTxt" class="dateTxt"></div>
			</div>
		</div>
		<div class='news-content'>
			<div id="newsDetail"></div>
		</div>

	</body>
</html>
